using UnityEngine;
using System.Collections;

/// <summary>
/// 自动关闭
/// </summary>
public class AutoClose : MonoBehaviour
{
	void Start ()
	{
		Invoke("CloseMessageBox",2.0f);// 它的意思是：2 秒之后调用 CloseMessageBox() 方法；
    }

    /// <summary>
    /// 关闭窗口
    /// </summary>
    void CloseMessageBox()
	{
        UIManager.Instance.CloseUI(EnumUIType.MessageBoxWnd);
	}
}

